/*
 * @Description: 
 * @Version: 1.0
 * @Author: tao
 * @Date: 2021-01-15 16:14:04
 * @LastEditors: tao
 * @LastEditTime: 2021-05-09 22:47:08
 */
module.exports = {
  configureWebpack: {
    resolve: {
      //省略文件后缀名
      extensions: ['js', 'css', 'vue'],
      alias: {
        'components': '@/components',
        'views': '@/views',
        'assets': '@/assets',
        'network': '@/network',
        'router': '@/router',
        'ant': '@/ant',
        'common': '@/common',
        'store': '@/store'
      }
    }
  },
  // publicPath: '/net/',
  // outputDir: 'net',
  // assetsDir: 'net/',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://172.16.71.30:81/',
        changOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
    }
  },
}